package creator.factory.normal;

public class ClientDemo11 {

    AbsOrderPizzaFactory absOrderPizzaFactory;

    public ClientDemo11(AbsOrderPizzaFactory absOrderPizzaFactory) {
        setAbsOrderPizzaFactory(absOrderPizzaFactory);
    }

    public void setAbsOrderPizzaFactory(AbsOrderPizzaFactory absOrderPizzaFactory) {
        this.absOrderPizzaFactory = absOrderPizzaFactory;
    }

    public void order() {
        absOrderPizzaFactory.getPizza();
    }

    public static void main(String[] args) {
        ClientDemo11 clientDemo11 = new ClientDemo11(new BJOrderPizzaFactory());
        clientDemo11.order();
    }

}
